package com.hooview.api.service;

import com.hooview.api.entity.Banner;
import com.hooview.utils.QueryFilters;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;
@RestController
public interface BannerService {

    @RequestMapping(value="/banner/queryObject",method = RequestMethod.GET)
    Banner queryObject(@RequestParam(value = "id") Integer id);

    @RequestMapping(value="/banner/queryList",method = RequestMethod.GET)
    List<Banner> queryList(@RequestParam Map<String, Object> map);

    @RequestMapping(value="/banner/save",method = RequestMethod.POST)
    void save(Banner banner);

    @RequestMapping(value="/banner/update",method = RequestMethod.POST)
    void update(@RequestBody Banner banner);

    @RequestMapping(value="/banner/delete",method = RequestMethod.POST)
    void delete(Integer id);

    @RequestMapping(value="/banner/getByFilter",method = RequestMethod.POST)
    List<Banner> getByFilter(QueryFilters filters);
}
